// index j

window.onload=function addID()
{
	var picList=document.getElementById('banner1').getElementsByTagName('img');
	//var fontList=document.getElementById('banner1').getElementsByTagName('div');
	
	for(var i=0;i<picList.length;i++){
		picList[i].setAttribute('id','oDIV'+(i+1));
//		fontList[i].setAttribute('id','font'+(i+1));
	}
	picList[0].style.display="";
//	fontList[0].style.display="block";
	n=true;
}


if (window.navigator.userAgent.indexOf("MSIE")>=1)
{
	var browser=navigator.appName
        var b_version=navigator.appVersion
        var version=b_version.split(";");
        var trim_Version=version[1].replace(/[ ]/g,""); 

var NowFrame = 1;
var MaxFrame = 3;
var bStart = 0;
function fnToggle()
{
		var next = NowFrame + 1;
		if(next == MaxFrame+1)
		{
		NowFrame = MaxFrame;
		next = 1;
		}
		if(bStart == 0)
		{
		bStart = 1;
		
		setTimeout('fnToggle()', 800);
		return;
		}
		else
		{
					var id="oDIV"+next;
					var id2="oDIV"+NowFrame;
					//var fid="font"+next;
					//var fid2="font"+NowFrame;
					
					if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0")
					{
						 
									document.getElementById(id).style.display = "";
									document.getElementById(id2).style.display = "none";
					}else{
						banner1.filters[0].Apply();
						document.getElementById(id).style.display = "";
						document.getElementById(id2).style.display = "none";
						
						banner1.filters[0].Play(duration=6);
					}
					//document.getElementById(fid).style.display = "";
					//document.getElementById(fid2).style.display = "none";
					if(NowFrame == MaxFrame)
					NowFrame = 1;
					else
					NowFrame++;
		} setTimeout('fnToggle()', 7000);
}
fnToggle();
}

else
{
		var j=1;
		function aa()
		{
			j++;
		if(j>9)
		{
			j=1;
		}
		setTimeout('aa()',3000);
		
		}
		setTimeout('aa()',3000);
}




